package com.model;

import com.sql.PeopleSql;
import javax.swing.table.DefaultTableModel;
/**
 *
 * @author Khaled Lela
 */
public class PeopleTableModel extends DefaultTableModel {

    public PeopleTableModel() {
        String[] columnNames =
                new String[]{
            "الفئة", "المنطقة", "الموزع", " عدد الأفراد", "الأسم", "مسلسل"
        };
        setDataVector(new PeopleSql().getPeopleRow(), columnNames);
    }
}
